<?php
@session_start();
include "config.php";
include "main_functions.php";

$username = $_POST['username'];
$password = $_POST['password'];

if ($admin['username'] == $username && $admin['password'] == $password) {
    $_SESSION['ADMIN'] = "logged";
    echo "<script> window.location='../index.php?Sucessfully_Logged_In...!!'; </script>";
} else {
    echo "<script> window.location='../index.php?Incorrect_Login...!!'; </script>";
}
?>